package com.xmutca.demo.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.service.GenericException;
import com.alibaba.dubbo.rpc.service.GenericService;
import com.xmutca.core.common.Receipt;
import com.xmutca.demo.api.Demo;
import com.xmutca.demo.api.service.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-07-12 22:27
 */
@Service(mock = "true")
public class DemoServiceImpl implements DemoService {

    @Override
    public Receipt test(Demo demo) {
        try {
            Thread.sleep(50000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        throw new RuntimeException();
    }
}
